package com.sxsihe.heartmate.util;

import android.util.DisplayMetrics;

public class PicPosization
{
    public static int BodyBackGroundH;
    public static int BodyBackGroundW;
    public static int BodyBackGroundX;
    public static int BodyBackGroundY;
    public static int DeleteButtonH;
    public static int DeleteButtonW;
    public static int DeleteButtonX;
    public static int DeleteButtonY;
    public static int HRVH;
    public static int HRVW;
    public static int HRVX;
    public static int HRVY;
    public static float HeartMapH;
    public static float HeartMapW;
    public static float HeartMapX;
    public static float HeartMapY;
    public static int HeartRateH;
    public static int HeartRateW;
    public static int HeartRateX;
    public static int HeartRateY;
    public static int HelpButtonH;
    public static int HelpButtonW;
    public static int HelpButtonX;
    public static int HelpButtonY;
    public static int RecStopButtonH;
    public static int RecStopButtonW;
    public static int RecStopButtonX;
    public static int RecStopButtonY;
    public static int ReplayButtonH;
    public static int ReplayButtonW;
    public static int ReplayButtonX;
    public static int ReplayButtonY;
    public static int ReturnButtonH;
    public static int ReturnButtonW;
    public static int ReturnButtonX;
    public static int ReturnButtonY;
    public static int SendButtonH;
    public static int SendButtonW;
    public static int SendButtonX;
    public static int SendButtonY;
    public static int StartButtonH;
    public static int StartButtonW;
    public static int StartButtonX;
    public static int StartButtonY;
    public static int h;
    public static int w;

    public static void setValue(DisplayMetrics paramDisplayMetrics)
    {
        w = paramDisplayMetrics.widthPixels;
        h = paramDisplayMetrics.heightPixels;
        BodyBackGroundW = w;
        BodyBackGroundH = h;
        BodyBackGroundX = 0;
        BodyBackGroundY = 0;
        ReturnButtonW = (w + h) / 20;
        ReturnButtonH = (w + h) / 20;
        ReturnButtonX = w / 30;
        ReturnButtonY = h / 26;
        HelpButtonW = (w + h) / 10;
        HelpButtonH = (w + h) / 13;
        HelpButtonX = 6 * w / 7;
        HelpButtonY = 4 * h / 5;
        StartButtonW = (w + h) / 10;
        StartButtonH = (w + h) / 10;
        StartButtonX = w / 4;
        StartButtonY = 3 * h / 4;
        ReplayButtonW = (w + h) / 10;
        ReplayButtonH = (w + h) / 10;
        ReplayButtonX = 3 * w / 4 - ((w + h) / 10);
        ReplayButtonY = 3 * h / 4;
        RecStopButtonW = (w + h) / 20;
        RecStopButtonH = (w + h) / 20;
        RecStopButtonX = 5 * w / 41;
        RecStopButtonY = 5 * h / 6;
        SendButtonW = (w + h) / 20;
        SendButtonH = (w + h) / 20;
        SendButtonX = 30 * w / 41;
        SendButtonY = 5 * h / 6;
        DeleteButtonW = (w + h) / 20;
        DeleteButtonH = (w + h) / 20;
        DeleteButtonX = 37 * w / 41;
        DeleteButtonY = 5 * h / 6;
        if ((w == 480) && (h == 320))
        {
            HeartMapX = 0.0F;
            HeartMapY = 320 * h / 1000;
            HeartMapW = w;
            HeartMapH = 430 * h / 1000;
            HeartRateX = 510 * w / 1000;
            HeartRateY = 826 * h / 1000;
            HRVX = 510 * w / 1000;
            HRVY = 920 * h / 1000;
            return;
        }
        if ((w == 320) && (h == 240))
        {
            HeartMapX = 0.0F;
            HeartMapY = 360 * h / 1000;
            HeartMapW = w;
            HeartMapH = 380 * h / 1000;
            HeartRateX = 520 * w / 1000;
            HeartRateY = 846 * h / 1000;
            HRVX = 520 * w / 1000;
            HRVY = 935 * h / 1000;
            return;
        }
        HeartMapX = 0.0F;
        HeartMapY = 310 * h / 1000;
        HeartMapW = w;
        HeartMapH = 460 * h / 1000;
        HeartRateX = 520 * w / 1000;
        HeartRateY = 870 * h / 1000;
        HRVX = 520 * w / 1000;
        HRVY = 937 * h / 1000;
    }
}
